package pe.cliente.proyecto.controller.mant;

import java.util.Locale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/controlPanel")
public class ControlPanelController extends pe.adra.core.controller.Controller {
	
	private static final Logger logger = LoggerFactory.getLogger(ControlPanelController.class);
	
	private static String PRINCIPAL ="/principal";
	
	@RequestMapping(method = RequestMethod.GET)
	public String init(Locale locale, Model model) {
		logger.info("Welcome home! The client locale is {}.", locale);
				
		return RUTA_PRIVADA+PRINCIPAL;
	}
	
}
